package Business;

/**
 * @Author:Cjj
 * 创建业务代表
 */
public class BusinessDelegate {
  private BusinessLookUp lookUpService=  new BusinessLookUp();
  private BusinessService service;
  private String serviceType;

  public void setServiceType(String serviceType)
  {
      this.serviceType=serviceType;
  }

  public void doTask()
  {
      service=lookUpService.getBusinessService(serviceType);
      service.doProcessing();
  }
}
